package monster.com.cvh.view;

import android.content.Context;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.MotionEvent;


/**
 * @author: pengguanming
 * @data: 2018/10/26
 * @function:photoview的viewpager
 */
public class PhotoViewPager extends ViewPager {


        public PhotoViewPager(Context context) {
            super(context);
        }

        public PhotoViewPager(Context context, AttributeSet attrs) {
            super(context, attrs);
        }

        @Override
        public boolean onInterceptTouchEvent(MotionEvent ev) {
            try {
                return super.onInterceptTouchEvent(ev);
            } catch (IllegalArgumentException e) {
                e.printStackTrace();
            } catch (ArrayIndexOutOfBoundsException e) {
                e.printStackTrace();
            }
            return false;
        }

    }